package com.guoranhao;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import com.guoranhao.tool.utils.LogUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.PropertySource;

@EnableDubboConfiguration
@SpringBootApplication
@PropertySource({"classpath:common.properties"})
@ServletComponentScan(basePackages = {"com.guoranhao.web.filter"})
public class GuoranhaoApiApplication {

    private static final Logger logger = LoggerFactory.getLogger(GuoranhaoApiApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(GuoranhaoApiApplication.class, args);
        LogUtil.info(logger, "【GuoranhaoApiApplication】START SUCCESS ~~!!!");
        System.out.println("【GuoranhaoApiApplication】START SUCCESS ~~!!!");
    }
}
